<!DOCTYPE html>
<html>
  <head>
    <title><?php echo $title ?></title>
    <meta name="description" content="" />   
  </head>
  <body>
    <div id="page">
      <div class="section"> 
      <?php if ($query->num_rows() > 0) : ?>      
<?php foreach($query->result() as $row):?>
<div class="article">
<h2><?php echo $row->comment_author;?></h2>
<p><?php echo $row->comment_content;?></p>
</div>
<?php endforeach;?>
<?php endif;?>

<?php echo anchor('blog/', 'Back to Blog');?>

		<?php echo form_open('blog/comment_insert');?>
		<?php echo form_hidden('article_id', $this->uri->segment(3));?>
		 	<ol>
				<li>
                <label for=name>Author</label>
				<input id=author name="comment_author" type=text placeholder="Author" required autofocus>
 				</li>
                <li>
                <textarea id=content name="comment_content" rows=10 required></textarea>
 				</li>
                <button type=submit>Submit</button>
      		</ol>  
        </form>      
      </div>
    </div><!--#page-->
  </body>
</html>